// Copyright Epic Games, Inc. All Rights Reserved.


#include "class08GameModeBase.h"
#include "ObjLoader.h"

void Aclass08GameModeBase::StartPlay()
{
    FActorSpawnParameters spawnParams;
    spawnParams.Name = "ObjModel01";
    spawnParams.Owner = this;

    FVector pos(0.0f, 0.0f, 40.0f);
    FRotator eulers(0.0f, 0.0f, 0.0f);
    AObjLoader* instance = GetWorld()->SpawnActor<AObjLoader>(
        pos, eulers, spawnParams);
    instance->SetActorScale3D(FVector(100.0, 100.0, 100.0));

    UE_LOG(LogTemp, Warning, TEXT("New actor: %s"), *(instance->GetName()));
    AGameModeBase::StartPlay();
}
